<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        li {
            list-style: none;
        }
        .a {
            margin: 50px auto;
            width: 1226px;
            height: 628px;
            background-color: pink;
        }
        .left {
            float: left;
            width: 234px;
            height: 628px;
            background-color: red;
        }
        .right {
            float: right;
            width: 978px;
            height: 628px;
            background-color: aqua;
        }
        .right li {
            float: left;
            margin-right: 14px;
            margin-bottom: 14px;
            width: 234px;
            height: 300px;
            background-color: yellow;
        }
        .right li:nth-child(4n) {
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
    <div class="a">
        <div class="left"></div>
        <div class="right">
            <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </div>
</body>
</html>